Skip to content

docs: improve documentation content structure#292

Open
GaneshPatil7517 wants to merge 10 commits intoapache:mainfrom
GaneshPatil7517:docs-improve-content-structure
Open

docs: improve documentation content structure#292
GaneshPatil7517 wants to merge 10 commits intoapache:mainfrom
GaneshPatil7517:docs-improve-content-structure

Conversation

@GaneshPatil7517
Copy link
Contributor

This PR improves the overall structure and completeness of the Shiro site
documentation by addressing stub content, improving navigation, and clarifying
how tutorials, guides, and release notes fit together.

Resolves #287.

GaneshPatil7517 and others added 9 commits February 6, 2026 09:33
- community.adoc: Update to use GitHub Discussions instead of Nabble
- forums.adoc: Restructure and add GitHub Discussions section
- issues.adoc: Update from Jira to GitHub Issues for issue tracking
Optimize the Validator to use buffered file reading with early exit
instead of reading entire files into memory. JBake metadata headers
are always at the top of .adoc files, so we only need to read the
first few lines to validate them.

Changes:
- Use BufferedReader instead of Files.readAllLines()
- Exit early when validation passes (date found or redirect page)
- Limit reading to first 50 lines (headers are typically in first 10)

This reduces memory usage and improves validation speed for large files.
Copilot AI review requested due to automatic review settings February 6, 2026 04:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the structure and completeness of the Apache Shiro documentation by replacing stub content with comprehensive documentation, enhancing navigation through cross-references, and clarifying how different documentation resources fit together.

Changes:

  • Replaced TODO/TBD stub content with comprehensive documentation for Authenticator and Authorizer components
  • Added "See Also" sections throughout documentation pages to improve navigation and discoverability
  • Enhanced documentation hub pages (guides.adoc, documentation.adoc, get-started.adoc) with better organization and structure
  • Added Migration Notes sections to release blog posts to help users understand upgrade paths
  • Optimized Java validator for better performance when parsing documentation headers

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/site/content/authenticator.adoc Complete rewrite from TODO stub to comprehensive documentation about the Authenticator component
src/site/content/authorizer.adoc Complete rewrite from TODO stub to comprehensive documentation about the Authorizer component
src/site/content/java-authorization-guide.adoc Replaced "TBD" stub with caching content and added "See Also" navigation section
src/site/content/java-authentication-guide.adoc Added "See Also" navigation section for cross-referencing related topics
src/site/content/reference.adoc Added introductory text, helpful tip for newcomers, and "See Also" section
src/site/content/guides.adoc Restructured with logical sections (Getting Started, Core Concepts, Advanced Topics) and improved descriptions
src/site/content/get-started.adoc Added "Next Steps" and "Need Help?" sections to guide users after completing tutorials
src/site/content/documentation.adoc Enhanced hub structure with better organization and clearer navigation paths
src/site/content/forums.adoc Simplified structure and removed deprecated GitHub Discussions reference
src/site/content/community.adoc Removed GitHub Discussions reference and simplified community resources
src/site/content/issues.adoc Cleaned up jbake-tags metadata by removing deprecated "jira" tag
src/site/content/blog/2024/11/apache-shiro-202-released.adoc Added Migration Notes section to help users upgrading from Shiro 1.x
src/site/content/blog/2025/07/apache-shiro-205-released.adoc Added Migration Notes section to help users upgrading from Shiro 1.x
src/site/content/blog/2025/11/apache-shiro-206-released.adoc Added Migration Notes section to help users upgrading from Shiro 1.x
src/main/java/org/apache/shiro/site/Validator.java Optimized header parsing to read only first 50 lines instead of entire files, with early returns for valid cases

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@lprimak lprimak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is entangled with other PRs... can't review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incomplete Content Structure

3 participants